.class Lcom/waiqin365/base/login/ba;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    const/4 v2, 0x0

    const/4 v3, 0x1

    iget-object v0, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->dragReorderGridView:Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3200(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;->a()Z

    move-result v0

    if-ne v0, v3, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->dragReorderGridView:Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3200(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/mainview/draggridview/DragReorderGridView;->b()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->dragGridViewAdapter:Lcom/waiqin365/base/login/mainview/draggridview/a;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3000(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/base/login/mainview/draggridview/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/login/mainview/draggridview/a;->a()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/g;

    iget v0, v0, Lcom/waiqin365/base/login/c/g;->l:I

    if-gez v0, :cond_2

    invoke-virtual {p2, v2}, Landroid/view/View;->setEnabled(Z)V

    iget-object v2, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/g;

    invoke-static {v2, v0}, Lcom/waiqin365/base/login/d/g;->a(Landroid/content/Context;Lcom/waiqin365/base/login/c/g;)V

    invoke-virtual {p2, v3}, Landroid/view/View;->setEnabled(Z)V

    goto :goto_0

    :cond_2
    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/c/g;

    iget v0, v0, Lcom/waiqin365/base/login/c/g;->l:I

    if-nez v0, :cond_0

    invoke-virtual {p2, v2}, Landroid/view/View;->setEnabled(Z)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-class v2, Lcom/waiqin365/base/login/LoginShortcutActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const/16 v2, 0x65

    invoke-virtual {v1, v0, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivityForResult(Landroid/content/Intent;I)V

    invoke-virtual {p2, v3}, Landroid/view/View;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/base/login/ba;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method
